class CreateUsers < ActiveRecord::Migration
  def self.up
      	create_table :users do|t|
		t.column :code,:string,  :limit => 15
		t.column :name,:string,  :limit => 15
		t.column :lastname,:string,  :limit => 15
		t.column :email,:string,:limit=>30
		t.column :phone,:string,:limit=>25
		t.column :type,:string,  :limit => 15
		t.column :student,:boolean
		t.column :career,:string
		t.column :password,:string
		t.column :expire_date, :datetime
		t.column :create_on, :datetime
		t.column :update_on, :datetime
		t.column :delete, :string, :limit => 3, :default => 'NO', :null => false

	end

end

  def self.down
	  drop_table representatives
  end
end  
